package com.demonzym.http.api;

import com.demonzym.framework.net.http.HttpRequest;
import com.demonzym.framework.net.http.HttpResponse;
import com.demonzym.framework.net.task.AbstractHttpTask;

public class GetBaiduTask extends AbstractHttpTask {
	
	@Override
	public HttpRequest buildHttpRequest() {
		return new HttpRequest("www.baidu.com");		 
	}

	@Override
	protected String buildResponseObject(HttpResponse hr) {
		return new String(hr.data);
	}

	@Override
	protected int buildType() {
		return Api.BAIDU;
	}
}
